package com.lxp.base.net.self;


import java.util.Map;

/**
 * Created by lxp on 2017/6/4.
 */

public interface IBaseHttp<T> {

    IBaseHttp appendHeaders(Map<String, String> headers);

    IBaseHttp setUrl(String url);

    IBaseHttp appendParams(Map<String, Object> params);

    IBaseHttp setTag(Object tag);

    IBaseHttp isCache(boolean isCache, int cacheTime);

    void cancel(Object tag);

    void get(BaseCallBack callBack);

    void post(BaseCallBack callBack);

}
